<?php if($agentInfo) { ?>
	<div class="widget our-agents">
		<div class="title">
			<h2>Our Agents</h2>
		</div>
		<!-- /.title -->
		
		<div class="content">
			<?php foreach ($agentInfo as $agent) { ?>
			<div class="agent">
				<div class="image agentphoto">
					<?php if($agent['AgentPhoto']) { ?>
						<img src="<?php echo base_url(); ?>detail/getAgentProfilePhoto/<?php echo $agent['Agent_ID'];?>" alt="<?php echo $agent['Name']; ?>">
					<?php } else { ?>
						<img src="<?php echo $this->config->item('HTTP_AGENTS_MEDIA_IMAGE'); ?>no-image.png" alt="">
					<?php } ?>
					
				</div>
				<!-- /.image -->
				<div class="name"><?php echo $agent['Name']; ?></div>
				<!-- /.name -->
				<div class="phone"><?php if(isset($agent['Mobile'])){echo $agent['Mobile'];} else {echo "333-666-777";} ?></div>
				<!-- /.phone -->
				<div class="email">
					<a href="mailto:<?php if(isset($agent['Email'])) { echo $agent['Email'];} else {echo "agent@jllresidential.com";} ?>"><?php if(isset($agent['Email'])) { echo $agent['Email'];} else {echo "agent@jllresidential.com";} ?></a>
				</div>
				<!-- /.email -->
			</div>
			<!-- /.agent -->
			<?php } ?>
		</div>
		
		<!-- /.content -->
	</div>
	<!-- /.our-agents -->
<?php } ?>